package xyz.lovegu.server.sys.service;

import xyz.lovegu.server.sys.common.ResultObj;
import xyz.lovegu.server.sys.vos.UserVo;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * @author 老顾
 * @title: LoginService
 * @projectName campus-prevention-system
 * @email: 1437594522@qq.com
 * @date 2022/5/5 20:09
 */
public interface LoginfoService {

    /**
     * 用户登录
     *
     * @param userVo
     * @param code
     * @param session
     * @return
     */
    ResultObj userLogin(UserVo userVo, HttpSession session);

    /**
     * 得到登陆验证码
     *
     * @param response
     * @param session
     */
    void getCode(HttpServletResponse response, HttpSession session);
}
